using System.ComponentModel.DataAnnotations;

namespace Universal.Application.Contracts.Dto.Role;

public record UpdateRoleDto(
    bool IsDefault,
    [Required(ErrorMessage = "角色名称不能为空")]
    [StringLength(50, ErrorMessage = "角色名称长度不能超过50个字符")]
    string Rolename,

    [StringLength(200, ErrorMessage = "角色描述长度不能超过200个字符")]
    string? Description,
    bool IsActive
);